﻿using EntityModel.PageListInfor;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel.Procurement
{
    /// <summary>
    /// 采购单
    /// </summary>
    [Table("Stocks")]
    public class AikeApplet_Stocks : Pagination
    {
        /// <summary>
        /// 采购单id
        /// CGYYYYMMDD0001
        /// </summary>
        [Key]
        public string stockid { get; set; }

        /// <summary>
        /// 供货商编号
        /// YYYYMMDD0001
        /// </summary>
        public string ppid { get; set; }

        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime stockDate { get; set; }

        /// <summary>
        /// 预计交货时间
        /// </summary>
        public DateTime stockInDate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public int stockUser { get; set; }

        /// <summary>
        /// 审核状态
        /// 1=未审核，2=已审核
        /// </summary>
        public int stockState { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string stockDesc { get; set; }

        /// <summary>
        /// 总数
        /// </summary>
        [MaxLength(10)]
        public string Amount { get; set; } = "0001";
    }
}
